package com.yrk.service.impl;

import com.yrk.dao.FileDao;
import com.yrk.entity.FileUp;
import com.yrk.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("fileService")
public class FileServiceImpl implements FileService {
    @Autowired
    private FileDao fileDao;
    @Override
    public int insertFile(FileUp file) {
        return fileDao.insertFile(file);
    }
}
